package com.bravo.friend.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author: Yuyong
 * @create: 2019-09-05 15:16
 **/


@Entity
@Table(name = "tb_nofriend")
@IdClass(NoFriend.class)
@Data
public class NoFriend implements Serializable {

    @Id
    private String userId;

    @Id
    private String friendId;

}
